package homeWork.Six.car;

//家用轿车类
class FamilyCar extends Car {
    //车主姓名
    private String name;

    public FamilyCar(String carName) {
        this.name = carName;
    }

    @Override
    public void start() {
        System.out.println("我是" + this.name + ",我的汽车我做主");
    }

    @Override
    public void stop() {
        System.out.println("目的地到了,我们去玩吧!!");
    }
}
